package com.cpdmali.courrier.serveur.servlet;


import org.apache.thrift.protocol.TBinaryProtocol;
import org.apache.thrift.server.TServlet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.cpdmal.courrier.service.thrift.Cpdmalimail;
import com.cpdmali.courrier.serveur.processor.ApiMultiplexingProcessor;
import com.cpdmali.courrier.serveur.processor.CpdMaliCourrierHandler;
import com.cpdmali.courrier.serveur.processor.CpdMaliCourrierServiceProcessor;


public class CpdMaliCourrierServlet extends TServlet {
	
	private static final long serialVersionUID = 1L;
	
	private ApiMultiplexingProcessor processor;
	
	
	public CpdMaliCourrierServlet(){
		super(new Cpdmalimail.Processor<Cpdmalimail.Iface>(
				new CpdMaliCourrierHandler()), 
				new TBinaryProtocol.Factory());
//		super(new ApiMultiplexingProcessor(new CpdMaliCourrierServiceProcessor(new CpdMaliCourrierHandler())), new TBinaryProtocol.Factory());
		
	}	
	
}
